<template>
  <div class="dashboard-container">
    <div class="dashboard-text">name: {{ name }}</div>
    <!-- <button @click="login">点我</button> -->
  </div>
</template>

<script>
import { mapGetters } from 'vuex'

import axios from 'axios'
export default {
  name: 'Dashboard',
  computed: {
    ...mapGetters(['name'])
  },
  methods: {
    // login() {
    //   axios({
    //     method: 'post',
    //     url: '/api/sys/login',
    //     data: {
    //       mobile: '13800000002',
    //       password: '123456'
    //     }
    //   }).then((res) => {
    //     console.log(res)
    //   })
    // }
  }
}
</script>

<style lang="scss" scoped>
.dashboard {
  &-container {
    margin: 30px;
  }
  &-text {
    font-size: 30px;
    line-height: 46px;
  }
}
</style>
